list1=[1,8,9,10,85,87,96,35,36,23]

for i in range(0,len(list1)-1):
    for j in range(0,len(list1)-1-i):
        if list1[j] > list1[j+1]:
            list1[j],list1[j+1]=list1[j+1],list1[j]

print(list1)